import { useLoaderData } from "react-router-dom";

const useBtnAuth = (val) => {
    const btnRoles = useLoaderData()
    const isOk = btnRoles.includes(val)

    return isOk
}
export default useBtnAuth;